﻿using System.IO;

namespace WP7BackupService
{
	/// <summary>
	/// todo: Add save and load features
	/// </summary>
	public static class Settings
	{
		static Settings()
		{
			BackupFolder = Directory.GetCurrentDirectory();
			ServiceSettings = new ServiceSettings();
		}

		public static string BackupFolder;
		public static ServiceSettings ServiceSettings;
	}

	public class ServiceSettings
	{
		public ServiceSettings()
		{
			Ip = TcpHelpers.GetIp();
			Port = TcpHelpers.GetAvailablePort();
		}

		public int Port;
		public string Ip;
		public const string ServiceName = "/WP7BackupService";
	}
}
